package de.tabuma.soap.entity.soap;

import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;fault&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="fault",mappingType=SoapClassMapping.MappingType.SOAP))
public class SFault implements Serializable {

    public SFault() {
        this.sFaultResId = new Long(0);
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=SFaultRes.class)
    private Long sFaultResId;
    public Long getSFaultResId() {
        return sFaultResId;
    }
    public void setSFaultResId(Long sFaultResId) {
        this.sFaultResId = sFaultResId;
    }
    
    @Persistent
    @SoapAttribute
    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
